import service from "@/tools/request"

//发布评论
const postComment = function(options) {
    return service({
        url:"www/article/postComment",
        method:"post",
        data:{
            options
        }
    })
}
//通过文章id查询评论
const getCommentsByArticleId = function(articleId){
	return service({
		url:"www/article/getCommentsByArticleId",
		method:"get",
		params:{
			articleId
		}
	})
}
export {
	postComment,
	getCommentsByArticleId
}